import turtle as t
#define DIAMETER 15
#define LEN_OF_STAR_SIDE 15
#define STAR_COLOR "green"

# draw star & dot
def draw(diameter, x_dot, y_dot, x_star, y_star):
    # draw dot
    t.up()
    t.goto(x_dot, y_dot)
    t.down()
    t.dot(diameter)
    # draw star
    drawstar()

# draw star
def drawstar(lenOfSide, starColor, x, y):
    t.up()
    t.goto(x, y)
    t.down()
    t.fillcolor(starColor)
    t.begin_fill()
    for i in range(5):
        t.fd(lenOfSide)
        t.right(144)
    t.end_fill()


t.tracer(False)
drawstar(20, "green")

t.done()
